package com.hand.exam.controller;

import com.hand.exam.annoction.TestAnnoction;
import com.hand.exam.domain.MethodParam;
import com.hand.exam.service.IMethodParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 马旭阳
 * @date2019/7/20
 */
@RestController
@RequestMapping(value = "/methodParam")

public class MethodParamController {
    @Autowired
    private IMethodParamService methodParamService;
    @PostMapping
    @TestAnnoction(value = true)
    public void insertMethodParam(@RequestBody MethodParam methodParam){
        methodParamService.insertMethodParam(methodParam);
    }
}
